package pro.shushi.pamirs.demo.api.model;

import pro.shushi.pamirs.meta.annotation.Field;
import pro.shushi.pamirs.meta.annotation.Model;
import pro.shushi.pamirs.meta.base.BaseRelation;
import pro.shushi.pamirs.meta.enmu.NullableBoolEnum;

@Model(displayName = "商品和标签关联表")
@Model.model(DemoItemRelLabel.MODEL_MODEL)
@Model.Advanced(relationship = NullableBoolEnum.TRUE, unique = {"itemId,labelId"})
public class DemoItemRelLabel extends BaseRelation {

    public final static String MODEL_MODEL = "demo.DemoItemRelLabel";


    @Field(displayName = "商品ID", index = true, required = true)
    private Long itemId;

    @Field(displayName = "标签ID", index = true, required = true)
    private Long labelId;

}
